package stackAndQueue;

import java.util.Stack;

/**
 * todo
 *
 * @author zhengshan
 * @Date 2023/3/1 9:59
 */
public class StackDemo {

    private Stack<Integer> stack;

    public StackDemo(){
        stack = new Stack<>();
    }

    public void appendTail(){
        stack.empty();
        stack.push(6);
        stack.push(3);
        stack.push(0);
        stack.push(7);
        stack.push(2);
        stack.peek();
        stack.pop();
        stack.search(6);
    }

    public static void main(String[] args) {
        new StackDemo().appendTail();

    }
}
